<?php
   	require_once('../utils/logged_in.php');
	require_once('../utils/query.php');


	$userPoints = execute_query("SELECT points FROM untol1_testdru.druuserpoints WHERE uid = '%s' AND tid = 147", $drupaluid);


	//echo "Your Points: ";
	if (!$userPoints){
			echo "0";
			}
	else{
		$row = mysql_fetch_array($userPoints);
		if ($row)
			$userPoints = $row[0];
		else
			$userPoints = 0;
		echo $userPoints;
	}


?>